summaryrefslogtreecommitdiffstats
path: root/src/app/(protected)/offices/[officeId].tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/(protected)/offices/[officeId].tsx')
-rw-r--r--src/app/(protected)/offices/[officeId].tsx18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/app/(protected)/offices/[officeId].tsx b/src/app/(protected)/offices/[officeId].tsx
index 77fd610..34095c5 100644
--- a/src/app/(protected)/offices/[officeId].tsx
+++ b/src/app/(protected)/offices/[officeId].tsx
@@ -53,11 +53,21 @@ export default function OfficeDetailScreen() {
) : null}
</View>
- <Link href="/(protected)/reservations/create" asChild>
- <Pressable style={styles.button}>
- <Text style={styles.buttonText}>Reservar este espacio</Text>
- </Pressable>
+ <Link
+ href={{
+ pathname: '/(protected)/reservations/create',
+ params: {
+ officeId: office.id,
+ officeName: office.name,
+ },
+ }}
+ asChild
+ >
+ <Pressable style={styles.button}>
+ <Text style={styles.buttonText}>Reservar este espacio</Text>
+ </Pressable>
</Link>
+
</View>
);
}